const { Schema } = require( '../db' );

const schema = new Schema( {
    username: String,
    password:String,
        name: {
                type: String,
                require: true,
                minlength: 2
            },
            age: {
                type: Number,
                default: 15,
                min: 13
            },
            sex: String,
            phone: String,
            email: String,
            hobbies: [ String ]
} );

module.exports = schema;